package ${basePackage}.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import ${basePackage}.domain${m.prefixPoint(table.modelName)}.${table.className};
import ${basePackage}.domain${m.prefixPoint(table.modelName)}.${table.className}Vo;

/**
* @author ${author!}
* @since ${timeNow!}
* ${table.remarks!}
*/
public interface ${table.className}Mapper {
    /**
     * 统计
     * @param query
     * @return 数量
     */
    Integer count(${table.className}Vo query);
    /**
     * 根据id查询
     * @param platformId 平台id
     * @param id id
     * @return ${table.className}Vo
     */
    ${table.className}Vo queryById(@Param("id") Long id);
    /**
     * 查询
     * @param query 查询条件Vo
     * @return ${table.className}Vo
     */
    ${table.className}Vo queryForObject(${table.className}Vo query);
    /**
     * 批量查询
     * @param query 查询条件Vo
     * @return ${table.className}Vo
     */
    List<${table.className+'Vo'}> queryForList(${table.className}Vo query);
    /**
     * 新增
     * @param entity
     * @return 影响记录数
     */
    Integer insert(${table.className} entity);
    /**
     * 更新
     * @param entity
     * @return 影响记录数
     */
    Integer update(${table.className} entity);
}